package com.ssy.lingxi.contract.controller;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.contract.api.model.vo.request.PurchaseInquiryAddVO;
import com.ssy.lingxi.contract.service.IPurchaseInquiryService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;

/**
 * @menu 采购询价合同-内部接口
 * @author 伍将
 * @date 2021/3/4
 * @version 2.0.0
 */
@RestController
@RequestMapping("/contract/feign/purchase/inquiry")
public class PurchaseInquiryFeignController {

    @Resource
    private IPurchaseInquiryService service;

    /**
     * 批量新增采购询价合同
     * @author 伍将
     * @date 2020/9/24
     **/
    @RequestMapping("/addList")
    public Wrapper<Void> addList(@RequestBody @Valid List<PurchaseInquiryAddVO> addVOList) {
        return service.addList(addVOList);
    }
}
